# 分页
class Page:
    def __init__(self, page: int = 1, pagesize: int = 10, sort_by: str = None, direction: str = "asc"):
        self.page = page
        self.pagesize = pagesize
        self.sort_by = sort_by
        self.direction = direction

    @property
    def skip(self):
        return (self.page - 1) * self.pagesize
